package com.shunli.cterminal.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author huanghongyi
 * @date 2023/11/3 9:24 PM
 */
public class QmConstant {

    public enum AppEnum implements Serializable {

        cesuan("cesuan", "国学测算"),
        lingting("lingting", "灵听");

        private String code;
        private String name;

        AppEnum(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public enum LibraExpStatus implements Serializable {
        //0=草稿 1=审核中 2=待开启 3=正常 4=暂停 5=关闭
        draft(0),//草稿（待提交，只能提交审核）
        reviewing(1),//审核中（可以编辑，保存后变为草稿）
        toStart(2),//待开启（审核通过 or 暂停状态才可以开启）
        open(3), //正常（暂停、关闭）
        pause(4),//暂停（只能开启和关闭）
        closed(5); //关闭
        private Integer status;

        LibraExpStatus(Integer status) {
            this.status = status;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }
    }

    public static final Map<String, String> platformTypeMap = new HashMap<>();
    static {
        platformTypeMap.put("ad", "广告");
        platformTypeMap.put("sms", "短信");
        platformTypeMap.put("email", "邮件");

    }


    public static final Map<String, String> platformMap = new HashMap<>();
    static {
        platformMap.put("baidu", "百度");
        platformMap.put("kuaishou", "快手");
        platformMap.put("toutiao", "头条");

        platformMap.put("bdyd","百度移动搜索");
        platformMap.put("bdpc","百度PC搜索");
        platformMap.put("bdxxl","百度信息流");
        platformMap.put("dy", "抖音信息流");
        platformMap.put("tt", "头条搜索");
        platformMap.put("oppo", "oppo");
        platformMap.put("vivo", "vivo");
        platformMap.put("wb", "微博信息流");
        platformMap.put("sm", "神马搜索");
        platformMap.put("uc", "UC信息流");
        platformMap.put("360ss", "360搜索");
        platformMap.put("360xxl", "360信息流");
        platformMap.put("ks","快手信息流");
        platformMap.put("zh","知乎信息流");
        platformMap.put("fh","凤凰信息流");
        platformMap.put("gdt","广点通");
        platformMap.put("bilibili","Bilibili");
        platformMap.put("dx_ll","联麓短信");
        platformMap.put("yj_ll","联麓邮件");
        platformMap.put("dx_sy","赛邮短信");
        platformMap.put("yj_sy","赛邮邮件");
    }
    public enum AdPlatform implements Serializable {

        baidu("baidu","百度"),
        bdyd("bdyd","百度移动搜索"),
        bdpc("bdpc","百度PC搜索"),
        bdxxl("bdxxl","百度信息流"),
        dy("dy", "抖音信息流"),
        tt("tt", "头条搜索"),
        oppo("oppo", "oppo"),
        vivo("vivo", "vivo"),
        wb("wb", "微博信息流"),
        sm("sm", "神马搜索"),
        uc("uc", "UC信息流"),
        qihuss("360ss", "360搜索"),
        qihuxxl("360xxl", "360信息流"),
        ks("ks","快手信息流"),
        zh("zh","知乎信息流"),
        fh("fh","凤凰信息流"),
        gdt("gdt","广点通"),
        bilibili("bilibili","Bilibili");

        private String code;
        private String name;

        AdPlatform(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static final Map<Integer, String> adTypeMap = new HashMap<>();
    static {
        adTypeMap.put(0, "搜索广告");
        adTypeMap.put(1, "信息流广告");

    }
    public enum AdTypeEnum implements Serializable {

        search(0, "搜索广告"),
        feed(1, "信息流广告");

        private Integer code;
        private String name;

        AdTypeEnum(Integer code, String name) {
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    /**
     * 广告报表数据类型
     */
    public static int AD_REPORT_DATA_ACCOUNT=1;
    public static int AD_REPORT_DATA_CAMPAIGN=2;
    public static int AD_REPORT_DATA_AD_GROUP=3;
    public static int AD_REPORT_DATA_IDEA=4;

    public static final Map<Integer, String> templateMap = new HashMap<>();
    static {
        templateMap.put(1, "模板一");
        templateMap.put(2, "模板二");
        templateMap.put(3, "模板三");
        templateMap.put(4, "运势快手 4");
        templateMap.put(5, "模板五(新支付)");
        templateMap.put(6, "模板 6(审核页)运势百度");
        templateMap.put(7, "模板七（广点通）");
        templateMap.put(8, "模板四(新版)");
        templateMap.put(9, "模板一(新版)&运势炫酷版");
        templateMap.put(10, "模板五(新版)-姻缘 1");
        templateMap.put(11, "头条测名审核");
        templateMap.put(12, "吉凶分析");
        templateMap.put(13, "测名纯黑（合婚绿色）-12 生肖运势");
        templateMap.put(14, "测名头条新(运势大师)");
        templateMap.put(15, "测名 15(姻缘 2022)(运势虎年)");
        templateMap.put(16, "测名 16(姻缘 2022 改版)");
        templateMap.put(17, "测名军师策(手机号) 运势十二生肖(合婚极简版)");
        templateMap.put(18, "测名军师策(手机号)2");
        templateMap.put(19, "运势简洁版");
        templateMap.put(20, "八字命书");
        templateMap.put(21, "测算 11 换详情版");
        templateMap.put(22, "测名蓝色版");
        templateMap.put(23, "测名子平");
        templateMap.put(24, "测名罗盘");
        templateMap.put(25, "子平测名(测底部)");
        templateMap.put(26, "运势快手(6 月)");
        templateMap.put(27, "运势 vivo");
        templateMap.put(28, "运势生辰祥批");
        templateMap.put(29, "运势橙色模板");
        templateMap.put(30, "最全组件运势");
        templateMap.put(31, "百度(0418)");
        templateMap.put(32, "快手(0418)");
        templateMap.put(33, "一生财运(0424)");
        templateMap.put(34, "八字命书(0513)");
        templateMap.put(35, "运势活支付页");
        templateMap.put(36, "流年运势祥批 2024");
        templateMap.put(37, "周易培训导流");
    }

    public static final Map<Integer, String> goodMap = new HashMap<>();
    static {
        goodMap.put(1, "宝宝起名");
        goodMap.put(2, "公司起名");
        goodMap.put(3, "PC 宝宝起名");
        goodMap.put(4, "PC 公司起名");
        goodMap.put(5, "测名模块");
        goodMap.put(6, "宝宝(头条)");
        goodMap.put(7, "运势模块");
        goodMap.put(8, "LOGO 模块");
        goodMap.put(9, "LOGO-PC 模块");
        goodMap.put(10, "合婚");
        goodMap.put(11, "法务");
        goodMap.put(12, "测名(PC)");
        goodMap.put(13, "合婚 PC");
        goodMap.put(14, "手机号测试");
        goodMap.put(15, "紫微斗数");
        goodMap.put(16, "运势 PC");
        goodMap.put(17, "姻缘正缘");
        goodMap.put(18, "子平测算");
        goodMap.put(19, "事业测算");
        goodMap.put(20, "十年测算");
        goodMap.put(21, "择吉日");
    }



    public enum LibraExpIdTypeEnum implements Serializable {

        ACCOUNT_ID("accountId"),//广告账户id
        UID("uid"),//uid
        MOBILE("mobile"),//手机号
        CID("cid"),//手机号
        DID("did");//设备id
        private String idType;

        LibraExpIdTypeEnum(String idType) {
            this.idType = idType;
        }

        public String getIdType() {
            return idType;
        }

        public void setIdType(String idType) {
            this.idType = idType;
        }
    }



    public static final Map<String, String> promotionChannelMap = new HashMap<>();
    static {
        promotionChannelMap.put(promotionChannelEnum.ggtf.code, promotionChannelEnum.ggtf.name);
        promotionChannelMap.put(promotionChannelEnum.dx.code, promotionChannelEnum.dx.name);
        promotionChannelMap.put(promotionChannelEnum.yj.code, promotionChannelEnum.yj.name);
        promotionChannelMap.put(promotionChannelEnum.ng.code, promotionChannelEnum.ng.name);
        promotionChannelMap.put(promotionChannelEnum.other.code, promotionChannelEnum.other.name);
    }
    public enum promotionChannelEnum implements Serializable {

        ggtf("ggtf", "广告投放"),
        dx("dx", "短信"),
        yj("yj", "邮件"),
        ng("ng", "内广"),
        other("other", "其他");

        private String code;
        private String name;

        promotionChannelEnum(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
